#include <cstdlib>
#include "sysopenfile.h"

SysOpenFile::SysOpenFile(OpenFile* f, int tempId, char * tempName)
{
    file = f;
    id = tempId;
    fileName = strdup(tempName);
    accessingProcesses = 0;
}

SysOpenFile::~SysOpenFile()
{
	delete file;
	free(fileName);
}

int SysOpenFile::getFileID()
{
    return id;
}

char* SysOpenFile::getFileName()
{
    return fileName;
}

int SysOpenFile::getAccessingProcesses()
{
    return accessingProcesses;
}

